<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=750, user-scalable=0">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <title>订单评价</title>
    <link rel="stylesheet" href="__PUBLIC__/css/weui.css?t=20141028987051">
    <link rel="stylesheet" href="__PUBLIC__/css/jquery-weui.min.css?t=20141028987051">
    <link href="__PUBLIC__/css/style.css?t=20141028987051" rel="stylesheet">
    <style>
      .layout.fixed {
    padding-bottom: 280px;
}
.btn-confirm {
    border-radius: 10px;
    height: 74px;
    width: 100%;
    background-color: #26adec;
    color: #ffffff;
    font-size: 42px;
    border: 0;
    outline: 0;
}
    </style>
</head>

<body>
    <div class="layout fixed" id="page-home">
        <header>
            <a href="javascript:history.go(-1);" class="link-left">返回</a>
        </header>
    
        <div class="address-bd">
            <center>
            <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" style="line-height: 2.4rem; padding:1px; font-size:28px;">
              <tbody>
                <tr>
                  <td width="86%" height="40" align="left" valign="top">订单总价：</td>
                  <td width="14%" align="left" valign="top">{$orderinfo.cost}元</td>
                </tr>
              </tbody>
            </table>
            </center>
        </div>
        
        
        <div class="address-bd">
            <center>
            <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" style="line-height: 2.4rem; padding:10px; font-size:32px;">
              <tbody>
                
                <tr>
                  <td width="14%" align="left"></td>
                  <td width="86%" align="left"></td>
                </tr>
                <tr>
                  <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                  <td align="left"></td>
                </tr>
                <tr>
                  <td height="40" align="left" valign="top">预约时间：</td>
                  <td align="left" valign="top">{$orderinfo.time}</td>
                </tr>
                <tr>
                  <td height="40" align="left" valign="top">选择车型：</td>
                  <td align="left" valign="top">{$orderinfo.car}</td>
                </tr>
                <tr>
                  <td height="40" align="left" valign="top">出发地：&nbsp;&nbsp;</td>
                  <td align="left" valign="top">{$orderinfo.startadd}</td>
                </tr>
                <tr>
                  <td height="40" align="left" valign="top">目的地：&nbsp;</td>
                  <td align="left" valign="top">{$orderinfo.endadd}</td>
                </tr>
               <!--  <tr>
                 <td align="left" valign="top">行李件数：</td>
                 <td align="left" valign="top">{$orderinfo.bag_num|default=0}件</td>
               </tr>
               <tr>
                 <td align="left" valign="top">行李</td>
                 <td align="left" valign="top">{$orderinfo.items}</td>
               </tr> -->
                
              </tbody>
            </table>
             <div class="beizhu">
                                <textarea name="comment" id="comment" cols="30" placeholder="评论"></textarea>
                            </div>
                            <button class="btn-confirm" id="sub_comment">提交评论</button>
            </center>
        </div>
       
        <div class="layer_notice" style="white-space:normal;">
          
        </div>
    </div>
    
    <script src="__PUBLIC__/js/jquery.min.js?t=20141028987051"></script>
    <script src="__PUBLIC__/js/jquery-weui.min.js?t=20141028987051"></script>
    <script src="__PUBLIC__/js/layer.js"></script>
    <script>
      $("#sub_comment").click(function () {
        var comment= $("#comment").val();
        if (comment=='') {
           alert('评论内容不能为空');
        return false;
        }
        $.post( '__URL__/pinglun', {
        id:{$orderinfo.id},
        type:'{$Think.get.type}',
        comment:comment

        }, function(data, status) {
          if (status=='success') {
             alert('评论成功');
          }
         
        });
       
      })
    </script>
</body>
</html>
